package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 聊天表
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("staff_chat")
public class StaffChat extends Model<StaffChat> implements Serializable {


    /**
     * 聊天ID
     */
    @TableId(value = "staff_chat_id", type = IdType.AUTO)
    private Integer staffChatId;

    @TableField("staff_left_id")
    private Integer staffLeftId;

    @TableField("staff_right_id")
    private Integer staffRightId;

    /**
     * 聊天时间
     */
    @TableField("staff_chat_time")
    private LocalDateTime staffChatTime;

    /**
     * 聊天文字内容
     */
    @TableField("staff_chat_text_content")
    private String staffChatTextContent;

    public Integer getStaffChatId() {
        return staffChatId;
    }

    public StaffChat setStaffChatId(Integer staffChatId) {
        this.staffChatId = staffChatId;
        return this;
    }

    public Integer getStaffLeftId() {
        return staffLeftId;
    }

    public StaffChat setStaffLeftId(Integer staffLeftId) {
        this.staffLeftId = staffLeftId;
        return this;
    }

    public Integer getStaffRightId() {
        return staffRightId;
    }

    public StaffChat setStaffRightId(Integer staffRightId) {
        this.staffRightId = staffRightId;
        return this;
    }

    public LocalDateTime getStaffChatTime() {
        return staffChatTime;
    }

    public StaffChat setStaffChatTime(LocalDateTime staffChatTime) {
        this.staffChatTime = staffChatTime;
        return this;
    }

    public String getStaffChatTextContent() {
        return staffChatTextContent;
    }

    public StaffChat setStaffChatTextContent(String staffChatTextContent) {
        this.staffChatTextContent = staffChatTextContent;
        return this;
    }

    @Override
    public String toString() {
        return "StaffChat{" +
                "staffChatId=" + staffChatId +
                ", staffLeftId=" + staffLeftId +
                ", staffRightId=" + staffRightId +
                ", staffChatTime=" + staffChatTime +
                ", staffChatTextContent=" + staffChatTextContent +
                "}";
    }
}
